package com.simpletour.qa.service.rpc;

import com.simpletour.qa.common.entity.User;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

@FeignClient(serviceId = "qa-user")
public interface UserService {
    @RequestMapping(value = "/rpc/user/{id}",method = RequestMethod.GET)
    User findUserById(@PathVariable("id") int id);


}
